﻿using Abp.Application.Services;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using WebApiClient;

namespace ARchGL.Platform.Qianbian
{
    /// <summary>
    /// 千变智慧工地 接口
    /// 注：系统相关的业务接口不应该放在这里，这样做只是为了将 Qianbian 相关的归纳到一起
    /// </summary>
    public interface IQianbianAppService : IApplicationService
    {
        ITask<AjaxResponse<List<ProjectsApiDto>>> GetProjectPagedList(int page, int index);

        ITask<AjaxResponse<List<ProjectUsersApiDto>>> GetProjectUserPagedList(int page, Guid projectId, int index);

        ITask<AjaxResponse<List<ProjectDevicesApiDto>>> GetProjectDevicePagedList(int page, Guid projectId, int index);

        ITask<AjaxResponse<List<ProjectAttendancesApiDto>>> GetProjectAttendancePagedList(string day, int page, Guid projectId, int index);

        ITask<AjaxResponse<List<ProjectEnvironmentsApiDto>>> GetProjectsEnvironmentPagedList(DateTime? startTime, DateTime? endTime, int page, Guid projectId, string serialNumber, int index);

        ITask<AjaxResponse<List<ProjectCranesApiDto>>> GetProjectsCranePagedList(DateTime? startTime, DateTime? endTime, int page, Guid projectId, string serialNumber, int index);

        ITask<AjaxResponse<List<ProjectLiftsApiDto>>> GetProjectsLiftPagedList(DateTime? startTime, DateTime? endTime, int page, Guid projectId, string serialNumber, int index);

        ITask<AjaxResponse<List<ProjectVideosApiDto>>> GetProjectsVideoList(Guid projectId, int index);

        ITask<AjaxResponse<ProjectVideoPlaysApiDto>> GetProjectsVideoPlay(Guid projectId, Guid videoId, int index);

        //Task AsyncQianbianData(EnumEventArg code);

        Task Async2();
    }
}
